package com.hst.capacity.infra.persistence.jpa.vehicle;

import com.hst.capacity.domain.model.entity.vehicle.VehicleInsuranceEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface VehicleInsuranceRepository extends JpaRepository<VehicleInsuranceEntity, String>, JpaSpecificationExecutor<VehicleInsuranceEntity> {
    VehicleInsuranceEntity findByIdVehicleAndInsuranceModule(String Vehicle,Integer InsuranceModule);
    List<VehicleInsuranceEntity> findByIdVehicle(String idVehicle);
}
